#include <iostream>
#include "ccounter.h"

void CCounter::SetValue(int number)
{
    CCounter::Value = number;
}

void CCounter::Increment()
{
    CCounter::Value++;
}

void CCounter::Decrement()
{
    CCounter::Value--;
}

int CCounter::GetValue()
{
    return CCounter::Value;
}

void CCounter::Print()
{
    std::cout << CCounter::Value << std::endl;
}

int main()
{
    CCounter ccounter;
    ccounter.SetValue(50);
    ccounter.Print();
    ccounter.Decrement();
    ccounter.Print();
    ccounter.Increment();
    ccounter.Print();
    int val = ccounter.GetValue();
    std::cout << val << std::endl;
}